package com.xhwl.centiotdata.action.pedestrian;

import com.xhwl.common.dto.auth.PedestrianAuthDTO;
import com.xhwl.common.dto.cent.pedes.DoorActionDTO;
import com.xhwl.common.dto.cent.pedes.OpenDoorRecordDTO;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.Organization;
import com.xhwl.common.pojo.cent.sdata.personnel.StaffDTO;
import feign.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author： lianghz
 * @Description：
 * @Date 2021/09/07/ 11:43
 */
@RestController
public interface IPedestrianAction {

    @RequestMapping(value = "/pedestrian-action/open-door", method = RequestMethod.POST)
    ResultJson openDoor(@RequestPart DoorActionDTO doorActionDTO);

    //蒙牛同步人员到大华ICC 添加人员的同时同步添加门禁卡
    @RequestMapping(value = "/pedestrian-action/add-user", method = RequestMethod.POST)
    ResultJson addUser(@RequestPart PedestrianAuthDTO pedestrianAuthDTO);

    @RequestMapping(value = "/pedestrian-action/inside-qr-code", method = RequestMethod.POST)
    ResultJson  queryInsideQrCode(@RequestPart OpenDoorRecordDTO openDoorRecordDTO);

    //蒙牛同步人事系统的人员到itc会议室，仅仅添加人员
    @RequestMapping(value = "/third/sync-user", method = RequestMethod.POST)
    String syncUser(@RequestPart StaffDTO staffDTO, @RequestPart Integer projectId );

    @RequestMapping(value = "/third/sync-org", method = RequestMethod.POST)
    String syncOrg(@RequestPart List<Organization> organizationList, @RequestPart Integer projectId );
}
